<?php
/* @var $this CController */
?>
<link rel="stylesheet" href="<?php echo $this->assetDir ?>css/bootstrap/bootstrap.css"/>
<link rel="stylesheet" href="<?php echo $this->assetDir ?>css/ui-lightness/jquery-ui-1.9.2.custom.min.css"/>
<link rel="stylesheet" href="<?php echo $this->assetDir ?>css/colorpicker/css/colorpicker.css"/>
        <!--<link rel="stylesheet" href="<?php echo $this->assetDir ?>css/bootstrap/docs.min.css"/>-->
<link rel="stylesheet" href="<?php echo $this->assetDir ?>css/design.css"/>
<div class="row-fluid">
    <div class="breadcrumbs hr-bottom">
        <a href="#">
            <img src="<?php echo $this->assetDir ?>img/icon/icon-ao.png" alt="#">
        </a>
        <img class="icon-breadcrumb" src="<?php echo $this->assetDir ?>img/icon/icon-sub.png" alt="#">
        <a href="#">Thiết kế</a>
    </div>
</div>
<?php echo $this->renderPartial("design"); ?>
<div class="row-fluid" id="design-index">
    <div class="span9">
        <?php
        if (Option::getItem('post_design')):
            $post = Post::model()->findByPk(Option::getItem('post_design'));
            if ($post):
                ?>
                <div class="fl">
                    <img style="padding: 0 10px 10px 0px" class="span3" src="<?php echo $post->getPublicResize(172, 172) ?>" alt="<?php echo $post->title ?>">
                    <div class="name-title color-green">
                        <?php echo $post->title ?>
                    </div> 
                    <?php echo $post->content ?>
                </div> 


            <?php endif; ?>
        <?php endif; ?>
    </div>
    <div class="span3 wrap-right">
        <div class="name-title color-green">
            <?php echo Option::getItem('design_menu1'); ?>
        </div>
        <?php
        $this->widget('zii.widgets.CMenu', array(
            'items'       => Menu::getItems(Menu::POS_DESIGN1),
            'htmlOptions' => array('class' => 'slide-out-div')
        ));
        ?>
        <!--        <div class="btn-view">
                    <a href="#">Xem hết 
                        <img src="<?php echo $this->assetDir ?>img/icon/home/down.png">
                    </a>
                </div>-->
        <div class="name-title color-green">
            <?php echo Option::getItem('design_menu2'); ?>
        </div>
        <?php
        $this->widget('zii.widgets.CMenu', array(
            'items'       => Menu::getItems(Menu::POS_DESIGN2),
            'htmlOptions' => array('class' => 'slide-out-div')
        ));
        ?>
        <!--        <div class="btn-view">
                    <a href="#">Xem hết 
                        <img src="<?php echo $this->assetDir ?>img/icon/home/down.png">
                    </a>
                </div>-->
    </div>
</div>
<script src="<?php echo $this->assetDir ?>js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="<?php echo $this->assetDir ?>js/jquery.form.min.js"></script>
<script src="<?php echo $this->assetDir ?>js/kendo/kendo.core.min.js"></script>
<script src="<?php echo $this->assetDir ?>js/colorpicker/colorpicker.js"></script>
<script src="<?php echo $this->assetDir ?>js/html2canvas.js"></script>
<script src="<?php echo $this->assetDir ?>js/canvas2image.js"></script>
<script src="<?php echo $this->assetDir ?>js/design.js"></script>
<script src="<?php echo $this->assetDir ?>js/addtocart.js"></script>